/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * <h2><center>&copy; Copyright (c) 2021 STMicroelectronics.
  * All rights reserved.</center></h2>
  *
  * This software component is licensed by ST under Ultimate Liberty license
  * SLA0044, the "License"; You may not use this file except in compliance with
  * the License. You may obtain a copy of the License at:
  *                             www.st.com/SLA0044
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define DRDY_IST8310_Pin GPIO_PIN_3
#define DRDY_IST8310_GPIO_Port GPIOE
#define RSTN_IST8310_Pin GPIO_PIN_2
#define RSTN_IST8310_GPIO_Port GPIOE
#define J2_Pin GPIO_PIN_4
#define J2_GPIO_Port GPIOE
#define J1_Pin GPIO_PIN_5
#define J1_GPIO_Port GPIOE
#define K1_Pin GPIO_PIN_6
#define K1_GPIO_Port GPIOE
#define RX_D_BUS_Pin GPIO_PIN_7
#define RX_D_BUS_GPIO_Port GPIOB
#define CAN1_RX_Pin GPIO_PIN_0
#define CAN1_RX_GPIO_Port GPIOD
#define TIM8_CH3_Pin GPIO_PIN_7
#define TIM8_CH3_GPIO_Port GPIOI
#define TIM8_CH2_Pin GPIO_PIN_6
#define TIM8_CH2_GPIO_Port GPIOI
#define TIM8_CH1_Pin GPIO_PIN_5
#define TIM8_CH1_GPIO_Port GPIOI
#define CAN1_TX_Pin GPIO_PIN_1
#define CAN1_TX_GPIO_Port GPIOD
#define TIM8_CH4_Pin GPIO_PIN_2
#define TIM8_CH4_GPIO_Port GPIOI
#define Q2_Pin GPIO_PIN_9
#define Q2_GPIO_Port GPIOI
#define TIM5_CH4_Pin GPIO_PIN_0
#define TIM5_CH4_GPIO_Port GPIOI
#define TIM1_CH2_Pin GPIO_PIN_9
#define TIM1_CH2_GPIO_Port GPIOA
#define Open_24v_Pin GPIO_PIN_2
#define Open_24v_GPIO_Port GPIOH
#define TIM1_CH1_Pin GPIO_PIN_8
#define TIM1_CH1_GPIO_Port GPIOA
#define open_24v_2_Pin GPIO_PIN_3
#define open_24v_2_GPIO_Port GPIOH
#define open_12v_Pin GPIO_PIN_4
#define open_12v_GPIO_Port GPIOH
#define LED_8_Pin GPIO_PIN_8
#define LED_8_GPIO_Port GPIOG
#define open_12v_2_Pin GPIO_PIN_5
#define open_12v_2_GPIO_Port GPIOH
#define LED_7_Pin GPIO_PIN_7
#define LED_7_GPIO_Port GPIOG
#define LED_6_Pin GPIO_PIN_6
#define LED_6_GPIO_Port GPIOG
#define MPU_NSS_Pin GPIO_PIN_6
#define MPU_NSS_GPIO_Port GPIOF
#define TIM5_CH3_Pin GPIO_PIN_12
#define TIM5_CH3_GPIO_Port GPIOH
#define LED_5_Pin GPIO_PIN_5
#define LED_5_GPIO_Port GPIOG
#define LED_4_Pin GPIO_PIN_4
#define LED_4_GPIO_Port GPIOG
#define LED_3_Pin GPIO_PIN_3
#define LED_3_GPIO_Port GPIOG
#define Q1_Pin GPIO_PIN_10
#define Q1_GPIO_Port GPIOF
#define TIM5_CH2_Pin GPIO_PIN_11
#define TIM5_CH2_GPIO_Port GPIOH
#define TIM5_CH1_Pin GPIO_PIN_10
#define TIM5_CH1_GPIO_Port GPIOH
#define TIM4_CH4_Pin GPIO_PIN_15
#define TIM4_CH4_GPIO_Port GPIOD
#define LED_2_Pin GPIO_PIN_2
#define LED_2_GPIO_Port GPIOG
#define N2_Pin GPIO_PIN_0
#define N2_GPIO_Port GPIOC
#define Q2C1_Pin GPIO_PIN_1
#define Q2C1_GPIO_Port GPIOC
#define M1_Pin GPIO_PIN_3
#define M1_GPIO_Port GPIOC
#define KEY_Pin GPIO_PIN_2
#define KEY_GPIO_Port GPIOB
#define KEY_EXTI_IRQn EXTI2_IRQn
#define LED_1_Pin GPIO_PIN_1
#define LED_1_GPIO_Port GPIOG
#define BUZZER_Pin GPIO_PIN_6
#define BUZZER_GPIO_Port GPIOH
#define TIM4_CH3_Pin GPIO_PIN_14
#define TIM4_CH3_GPIO_Port GPIOD
#define TIM4_CH2_Pin GPIO_PIN_13
#define TIM4_CH2_GPIO_Port GPIOD
#define ADC3_IN1_Pin GPIO_PIN_1
#define ADC3_IN1_GPIO_Port GPIOA
#define ADC1_IN0_Pin GPIO_PIN_0
#define ADC1_IN0_GPIO_Port GPIOA
#define P2_Pin GPIO_PIN_4
#define P2_GPIO_Port GPIOA
#define N1_Pin GPIO_PIN_4
#define N1_GPIO_Port GPIOC
#define TIM1_CH3_Pin GPIO_PIN_13
#define TIM1_CH3_GPIO_Port GPIOE
#define TIM4_CH1_Pin GPIO_PIN_12
#define TIM4_CH1_GPIO_Port GPIOD
#define ADC2_IN2_Pin GPIO_PIN_2
#define ADC2_IN2_GPIO_Port GPIOA
#define P1_Pin GPIO_PIN_5
#define P1_GPIO_Port GPIOA
#define O1_Pin GPIO_PIN_5
#define O1_GPIO_Port GPIOC
#define LED_R_Pin GPIO_PIN_11
#define LED_R_GPIO_Port GPIOE
#define TIM1_CH4_Pin GPIO_PIN_14
#define TIM1_CH4_GPIO_Port GPIOE
#define CAN2_RX_Pin GPIO_PIN_12
#define CAN2_RX_GPIO_Port GPIOB
#define CAN2_TX_Pin GPIO_PIN_13
#define CAN2_TX_GPIO_Port GPIOB
#define ADC1_IN3_Pin GPIO_PIN_3
#define ADC1_IN3_GPIO_Port GPIOA
#define M2_Pin GPIO_PIN_1
#define M2_GPIO_Port GPIOB
#define L2_Pin GPIO_PIN_0
#define L2_GPIO_Port GPIOB
#define LED_G_Pin GPIO_PIN_14
#define LED_G_GPIO_Port GPIOF
/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
